package ru.pashkan.spring.entity;

import org.codehaus.jackson.annotate.JsonIgnore;

import java.util.Date;

public class User{

//    @Id
//    @Column(name = "user_id")
    private int userId;

//    @Column(name = "user_name")
    private String userName;

//    @Column(name = "email")
    private String email;

//    @Column(name = "login")
    private String login;

//    @Column(name = "password")
    private String password;

//    @Column(name = "registration_date")
    private Date registrationDate;

//    @Column(name = "role_id")
    private int roleId;

//    @Column(name = "hide")
    private boolean hide;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    @JsonIgnore
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getRegistrationDate() {
        return registrationDate;
    }

    public void setRegistrationDate(Date registrationSate) {
        this.registrationDate = registrationSate;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public boolean isHide() {
        return hide;
    }

    public void setHide(boolean hide) {
        this.hide = hide;
    }
}
